package module.scene.model.dataObj
{
	/**
	 *	领地物件数据结构 
	 * @author Roland
	 * 
	 */
	public class TerritoryIsoDataObj extends IsoDataObj
	{
		/**
		 *	 领地宽度(格子)
		 */
		public var rangeWidth:int = 10;
		
		/**
		 *	 领地高度(格子)
		 */
		public var rangeHeight:int = 10;
		public function TerritoryIsoDataObj()
		{
			super();
		}
		
		/**
		 *	填充动态数据 
		 * @param data
		 * 
		 */
		override public function parseDynamicData(data:Object):void
		{
			this.absX = data.user_info.land_pos.x;
			this.absZ =  data.user_info.land_pos.y;
			this.eId = data.user_info.land_pos.eid;
			this.rangeWidth =  data.user_info.land_pos.width;
			this.rangeHeight =  data.user_info.land_pos.height;
			this.userId = data.uid;
		}
		
		public static function parseData(data:Object):IsoDataObj
		{
			var $obj:TerritoryIsoDataObj = IsoDataObj.parseData(data) as TerritoryIsoDataObj;
			return $obj;
		}
	}
}